package view.bean;

import oracle.adf.model.BindingContext;
import oracle.adf.model.binding.DCBindingContainer;
import oracle.adf.model.binding.DCIteratorBinding;

public class EditTableBackingBean {
    public EditTableBackingBean() {
    }

    public DCBindingContainer getBindings() {
        DCBindingContainer dcBindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
        return dcBindings;
    }
    public String deleteSelectedRow() {
        DCBindingContainer dcBindings = getBindings();
        DCIteratorBinding iterBind= (DCIteratorBinding)dcBindings.get("JobsVO1Iterator");
        iterBind.getCurrentRow().remove();
        return null;
    }
    
    public void creatNewRow() {
        DCBindingContainer dcBindings = getBindings();
        DCIteratorBinding iterBind= (DCIteratorBinding)dcBindings.get("EmployeesVO1Iterator");
       // iterBind.cre
    }
}
